package com.leanyuan.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.leanyuan.dao.UserinfoMapper_V;
import com.leanyuan.domain.Userinfo;
import com.leanyuan.service.UserinfoService_V;
import com.leanyuan.vo.CarUserInfoVo;
import com.leanyuan.vo.CarUserVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 相亲相爱一家人
 * @since 2021-05-25
 */
@Service
public class UserinfoServiceVImpl_V extends ServiceImpl<UserinfoMapper_V, Userinfo> implements UserinfoService_V {

    @Autowired
    UserinfoMapper_V userinfoMapperV;

    @Override
    public IPage<CarUserVo> findUserByPage(Page<CarUserVo> page) {
        return this.userinfoMapperV.findUserByPage(page);
    }

    @Override
    public IPage<CarUserVo> findUserPageByParam(Page<CarUserVo> page, Integer tel, String username) {
        return this.userinfoMapperV.findUserPageByParam(page,tel,username);
    }

    @Override
    public List<CarUserInfoVo> findUserList(Integer id) {
        return this.userinfoMapperV.findUserList(id);
    }
}
